home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4025 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: cnn.Princeton.EDU!franck!tim
  2. From: tim@franck (Tim Hollebeek)
  3. Newsgroups: comp.unix.solaris,comp.unix.programmer,comp.lang.c
  4. Subject: Re: inline code
  5. Followup-To: comp.unix.solaris,comp.unix.programmer,comp.lang.c
  6. Date: 31 Jan 1996 22:55:32 GMT
  7. Organization: Princeton University
  8. Distribution: inet
  9. Message-ID: <4eos14$lpk@cnn.Princeton.EDU>
  10. References: <lbecker-3101961334210001@206.161.148.20>
  11. NNTP-Posting-Host: franck.princeton.edu
  12. X-Newsreader: TIN [version 1.2 PL2]
  13.  
  14. Lynn Becker (lbecker@avtec.com) wrote:
  15. : Hi,
  16.  
  17. : I have some code that I am trying to port to the SparcStation 20 (Solaris 2.4).
  18. : We have the sparcworks c compiler. (/opt/SUNWspro/bin/cc) and it is
  19. : choking on an inline keyword (directive to the previous compiler?). I am
  20. : looking at the manual and the man pages, but haven't decided whether there
  21. : is a way to make the sun comiler accepts this notation.  Does the gcc
  22. : compiler accept this? Here is a snippet of the code I am using.
  23.  
  24. gcc allows inline as an extension, but it isn't strictly part of the C
  25. language.  If you can handle not having the routines inlined, try
  26. passing -Dinline= to the compiler.
  27.  
  28. -----
  29. Tim Hollebeek      | Everything above is a true statement, for sufficiently
  30. <space for rent>   | false values of true.
  31. Princeton Univ.    | tim@wfn-shop.princeton.edu
  32. -------------------| http://wfn-shop.princeton.edu/~tim
  33.